package com.cuitrip.business.order.model;

import com.cuitrip.business.tripservice.model.ServiceInfo;
import com.cuitrip.service.R;
import com.cuitrip.util.ResourceUtil;

import java.io.Serializable;

/**
 * 费用信息
 * Created by ak on 15/10/23.
 */
public class PayInfo implements Serializable{


    protected String paymentWay;
    protected String payCurrency;
    protected String price;
    protected String payInclude;
    protected String payExclude;
    //protected String payShowCurrency;
    //protected String payShowPrice;
    protected String payPriceWithCurrency;
   /* public PayInfo(String paymentWay, String payCurrency,String price, String payInclude, String payExclude,String payShowCurrency,String payShowPrice) {
        this.paymentWay = paymentWay;
        this.payCurrency = payCurrency;
        this.payInclude = payInclude;
        this.payExclude = payExclude;
        this.payShowCurrency=payShowCurrency;
        this.payShowPrice=payShowPrice;
        this.price = price;
    }
*/

    public PayInfo(String paymentWay, String payCurrency, String price, String payInclude, String payExclude) {
        this.paymentWay = paymentWay;
        this.payCurrency = payCurrency;
        this.price = price;
        this.payInclude = payInclude;
        this.payExclude = payExclude;

    }

    public String getPayPriceWithCurrency() {
        return payPriceWithCurrency;
    }

    public void setPayPriceWithCurrency(String payPriceWithCurrency) {
        this.payPriceWithCurrency = payPriceWithCurrency;
    }
    /*public String getPayShowCurrency() {
        return payShowCurrency;
    }

    public void setPayShowCurrency(String payShowCurrency) {
        this.payShowCurrency = payShowCurrency;
    }

    public String getPayShowPrice() {
        return payShowPrice;
    }

    public void setPayShowPrice(String payShowPrice) {
        this.payShowPrice = payShowPrice;
    }*/

    public String getPaymentWay() {
        return paymentWay;
    }

    public void setPaymentWay(String paymentWay) {
        this.paymentWay = paymentWay;
    }

    public String getPayCurrency() {
        return payCurrency;
    }

    public void setPayCurrency(String payCurrency) {
        this.payCurrency = payCurrency;
    }

    public String getPayInclude() {
        return payInclude;
    }

    public void setPayInclude(String payInclude) {
        this.payInclude = payInclude;
    }

    public String getPayExclude() {
        return payExclude;
    }

    public void setPayExclude(String payExclude) {
        this.payExclude = payExclude;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public static String getPayWayText(String paymentWay){
        if (ServiceInfo.PAYWAY_FREE.equals(paymentWay)){
            return ResourceUtil.getString(R.string.price_attribute_type_value_free);
        }else if (ServiceInfo.PAYWAY_ALL.equals(paymentWay)){
            return ResourceUtil.getString(R.string.price_attribute_type_value_fixed);
        }else if (ServiceInfo.PAYWAY_PER.equals(paymentWay)){
            return ResourceUtil.getString(R.string.price_attribute_type_value_people);
        }else{
            return "";
        }
    }
}
